<table class="table table-condensed table-bordered">
	<thead class="text-center">
      <tr>
        <td class="bg-primary text-center">投放编号</td>
        <td class="bg-primary text-center">投放类型</td>
        <td class="bg-primary text-center">投放规格</td>
        <td class="bg-primary text-center">地址</td>
        <td class="bg-primary text-center">合同时间</td>
        <td class="bg-primary text-center">合同附件</td>
        <td class="bg-primary text-center">发票附件</td>
        <td class="bg-primary text-center">会签审批表</td>
        <td class="bg-primary text-center">合同金额</td>
        <td class="bg-primary text-center">操作</td>
      </tr>
    </thead>
	<tbody class="text-center">
		<?php foreach ($projectList as $k => $v): ?>
		<tr>
			<td><?=$v['id']?></td>
			<td><?=$v['mediaTypeStr']?></td>
			<td><?=$v['mediaSize']?></td>
			<td><?=$v['address']?></td>
			<td><?=$v['contractStart']?>--<?=$v['contractEnd']?></td>
			<td>
		        <?php if ($v['contractFile']): ?>
		        <a type="button" class="btn btn-default" href="<?=printUrl('Upload','download',array('fileId'=>$v['contractFile']['id']))?>" aria-label="Left Align" role="button">
		                <span class="glyphicon glyphicon-download-alt" aria-hidden="true"></span>
		                附件下载
		              </a>
		        <?php endif ?>
		      </td>
		      <td>
		        <?php if ($v['invoiceFile']): ?>
		        <a type="button" class="btn btn-default" href="<?=printUrl('Upload','download',array('fileId'=>$v['invoiceFile']['id']))?>" aria-label="Left Align" role="button">
		                <span class="glyphicon glyphicon-download-alt" aria-hidden="true"></span>
		                附件下载
		              </a>
		        <?php endif ?>
		      </td>
			<td>
				<a type="button" onclick="showJsonPhotos('<?=printUrl('SpreadBudget','storeProjectPhotos', array('projectId'=>$v['id']))?>')" class="btn btn-default" aria-label="Left Align" role="button">
	              查看
	            </a>
			</td>
			<td><?=$v['applyMoney']?></td>
			<td>
				<?php if (in_array($v['auditRs'], array(-1,0,3) )) {?>
		          <a class="btn btn-default" onclick="newWindow('修改','<?=printUrl('SpreadBudget','storeProjectAdd', array('projectId'=>$v['id']))?>',800,550,'reloadData')" role="button">修改</a>
		          <a class="btn btn-default" type="button" onclick="ajaxConfirmSubmit('您确定要删除此项目吗？<br>此操作不可撤销','<?=printUrl('SpreadBudget','storeProjectDel')?>',{'projectId':<?=$v['id']?>})">删除</a>
		          <?php } ?>
			</td>
		</tr>
		<?php endforeach ?>
	</tbody>
</table>